package com.chart.system.domain.vo;

import com.baomidou.mybatisplus.annotation.*;
import com.chart.common.annotation.Excel;
import com.chart.common.annotation.Excel.ColumnType;
import com.chart.common.annotation.Excel.Type;
import com.chart.common.annotation.Excels;
import com.chart.common.core.domain.BaseEntity;
import com.chart.common.core.domain.entity.SysDemand;
import com.chart.common.core.domain.entity.SysDept;
import com.chart.common.core.domain.entity.SysRole;
import com.chart.common.xss.Xss;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.Email;
import javax.validation.constraints.Size;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

/**
 * 用户对象 sys_user
 * 
 * @author chart
 */
@Data
public class SysUserVo
{

    /** 用户Id */
//    @Excel(name = "登录名称")
    private Long userId;

    /** 用户账号 */
    @Excel(name = "登录名称")
    private String userName;

    /** 用户昵称 */
    @Excel(name = "用户名称")
    private String nickName;

    /** 用户邮箱 */
    @Excel(name = "用户邮箱")
    private String email;

    /** 手机号码 */
    @Excel(name = "手机号码")
    private String phonenumber;

    /** 用户性别 */
    @Excel(name = "用户性别", readConverterExp = "0=男,1=女,2=未知")
    private String sex;

    /** 学校或单位 */
    @Excel(name = "学校或单位")
    private String unit;

    /** 学历  0小学 1中学 2高中 3本科 4研究生 5博士 */
    @Excel(name = "学历",readConverterExp = "0=小学,1=中学,2=高中,3=本科,4=研究生,5=博士")
    private Integer education;


    @Excel(name = "专业")
    private String speciality;


    /** wx用户id */
    @Excel(name = "wx用户id")
    private String openId;

    /** 关注状态   0:关注 1：未关注*/
    @Excel(name = "关注状态",readConverterExp = "0=已关注,1=未关注")
    private Integer isSubscribe;

    //需求
    @Excel(name = "需求")
    private String demandName;
    //角色
    @Excel(name = "角色")
    private String postName;

    /** vip   0:普通用户 1：vip*/
    @Excel(name = "vip",readConverterExp = "0=普通用户,1=vip")
    private Integer isVip;

    //注册渠道
    @Excel(name = "注册渠道")
    private String regChannelName;

    /** vip过期时间 */
    @Excel(name = "vip过期时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss", type = Type.EXPORT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime expirationTime;

    /** 最后登录时间 */
    @Excel(name = "最后登录时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss", type = Type.EXPORT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date loginDate;

    @Excel(name = "注册时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss", type = Type.EXPORT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 开始时间 */
    private String startTime;

    /** 结束时间 */
    private String endTime;


    private List<Long> userIds;

}
